<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h1>教师信息</h1>
    <div class="avatar">
        <!-- 这里可以放置头像图片或其他内容 -->
    </div>
    <table>
        <tr>
            <td>ID:</td>
            <td>${teacher_inf.id}</td>
        </tr>
        <tr>
            <td>姓名:</td>
            <td>${teacher_inf.name}</td>
        </tr>
        <tr>
            <td>性别:</td>
            <td>${teacher_inf.gender}</td>
        </tr>
        <tr>
            <td>年龄:</td>
            <td>${teacher_inf.age}</td>
        </tr>
        <tr>
            <td>办公室:</td>
            <td>${teacher_inf.office}</td>
        </tr>
        <tr>
            <td>电话:</td>
            <td>${teacher_inf.phone}</td>
        </tr>
    </table>
<%--    course_inf--%>
    <table>
        <tr>
            <th>教师号</th>
            <th>课程号</th>
            <th>课程名称</th>
            <th>考核方式</th>
            <th>学时</th>
            <th>学分</th>
            <th>详情</th>
        </tr>
        <c:forEach items="${course_inf}" var="course_inf">
            <tr>
                <td>${course_inf.teacher_id}</td>
                <td>${course_inf.course_id}</td>
                <td>${course_inf.course_name}</td>
                <td>${course_inf.method}</td>
                <td>${course_inf.hour}</td>
                <td>${course_inf.credits}</td>
                <td><a href="TeacherCourseDetail?teacherId=${course_inf.teacher_id}&courseId=${course_inf.course_id}">
                    课程详情</a>
                </td>
            </tr>
        </c:forEach>

    </table>
</body>
</html>
